﻿@model YuFeng.Models.Product.ProductCategory
@using (Html.BeginForm())
{
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title">基本信息</h4>
        </div>
        <div class="panel-body panel-body-nopadding form-horizontal form-bordered">
            @Html.HiddenFor(o => o.Id)
            <div class="form-group">
                <label class="col-sm-2 control-label">
                    分类名称
                    <span class="asterisk">*</span>
                </label>
                <div class="col-sm-8">
                    @Html.TextBoxFor(e => e.Name, new { @placeholder = "分类名称", @class = "form-control" })
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">
                    排序
                    <span class="asterisk">*</span>
                </label>
                <div class="col-sm-8">
                    @Html.TextBoxFor(e => e.Sort, new { @placeholder = "排序", @class = "form-control", type = "number" })
                </div>
            </div>
        </div>
        <div class="panel-footer">
            <div class="row">
                <div class="col-sm-8 col-sm-offset-2">
                    <input type="submit" value="保存" class="btn btn-primary" id="btnSave">
                    &nbsp;
                    <a href="/Admin/Production/ProductCategory" class="btn btn-link">返回</a>
                </div>
            </div>
        </div>
    </div>
}
<script type="text/javascript">
    $(function () {
        $("#nav-profiles li").each(function () {
            if ($(this).find("a").attr("href").indexOf("ProductCategory") > 0) {
                $(this).addClass("active");
            }
        });
    });
</script>